import request from '@/utils/http'

/**
 * 获取商品详情
 * @param {*} id 商品详情id 
 * @returns 
 */
export const getDetail = (id) => {
    return request({
        url: '/goods',
        params: {
            id
        }
    })
}

/**
 *  获取商品详情
 * /goods返回格式:
 * {
    "code": "1",
    "msg": "操作成功",
    "result": {
        "id": "4026450",
        "name": "趣味小恐龙绣花，男童灯芯绒衬衫",
        "spuCode": "4026450",
        "desc": "趣味小恐龙绣花，满版老虎印花，5色可选",
        "price": "89.00",
        "oldPrice": "89.00",
        "discount": 1,
        "inventory": 18601205,
        "brand": {
            "id": "spider99999999999",
            "name": "传智自有品牌",
            "nameEn": "chuanzhi",
            "logo": "https://yanxuan-item.nosdn.127.net/f6ddd429632de6170900dc2fbc541fd8.png?type=webp&imageView&thumbnail=78x78&quality=95",
            "picture": "https://yanxuan-item.nosdn.127.net/f6ddd429632de6170900dc2fbc541fd8.png?type=webp&imageView&thumbnail=78x78&quality=95",
            "type": null,
            "desc": null,
            "place": null
        },
        "salesCount": 172,
        "commentCount": 1,
        "collectCount": 0,
        "mainVideos": [],
        "videoScale": 1,
        "mainPictures": [
            "https://yanxuan-item.nosdn.127.net/e68d406a58622a8d850de442aacfcf2e.jpg",
            "https://yanxuan-item.nosdn.127.net/5cc2007211c561d9bfe5426fe9d943de.jpg",
            "https://yanxuan-item.nosdn.127.net/34408ad262b83e68c98cd7b6855bb1e4.jpg",
            "https://yanxuan-item.nosdn.127.net/f15f22c3698d1731ec4753fbc1d82488.jpg",
            "https://yanxuan-item.nosdn.127.net/619319e12a8a04f642a7843f85531ab4.jpg"
        ],
        "specs": [
            {
                "name": "颜色",
                "id": "1482372728260526083",
                "values": [
                    {
                        "name": "灰半蓝",
                        "picture": "https://yanxuan-item.nosdn.127.net/2df51fa62b5719c2553249055eaaa02a.png",
                        "desc": "T恤/polo/衬衫-销售属性颜色-灰半蓝-规格属性图片"
                    },
                    {
                        "name": "虎虎生威",
                        "picture": "https://yanxuan-item.nosdn.127.net/c4295d879800d3280c483faa043ad6f2.png",
                        "desc": "T恤/polo/衬衫-销售属性颜色-虎虎生威-规格属性图片"
                    },
                    {
                        "name": "暗绿色",
                        "picture": "https://yanxuan-item.nosdn.127.net/df5c51c0772ef8948449dd8cb5d9b493.png",
                        "desc": "T恤/polo/衬衫-销售属性颜色-暗绿色-规格属性图片"
                    },
                    {
                        "name": "米白",
                        "picture": "https://yanxuan-item.nosdn.127.net/25320ac8a79b26b5baff8337010e9670.png",
                        "desc": "T恤/polo/衬衫-销售属性颜色-米白-规格属性图片"
                    },
                    {
                        "name": "极地黄",
                        "picture": "https://yanxuan-item.nosdn.127.net/959423192703db495c39ee7ab7046f38.png",
                        "desc": "T恤/polo/衬衫-销售属性颜色-极地黄-规格属性图片"
                    }
                ]
            },
            {
                "name": "尺码",
                "id": "1482372729053249538",
                "values": [
                    {
                        "name": "110/5T",
                        "picture": null,
                        "desc": "T恤/polo/衬衫-销售属性尺码-110/5T-规格属性图片"
                    },
                    {
                        "name": "120/6T",
                        "picture": null,
                        "desc": "T恤/polo/衬衫-销售属性尺码-120/6T-规格属性图片"
                    },
                    {
                        "name": "130/8T",
                        "picture": null,
                        "desc": "T恤/polo/衬衫-销售属性尺码-130/8T-规格属性图片"
                    },
                    {
                        "name": "73/18M",
                        "picture": null,
                        "desc": "T恤/polo/衬衫-销售属性尺码-73/18M-规格属性图片"
                    },
                    {
                        "name": "80/24M",
                        "picture": null,
                        "desc": "T恤/polo/衬衫-销售属性尺码-80/24M-规格属性图片"
                    },
                    {
                        "name": "90/3T",
                        "picture": null,
                        "desc": "T恤/polo/衬衫-销售属性尺码-90/3T-规格属性图片"
                    },
                    {
                        "name": "100/4T",
                        "picture": null,
                        "desc": "T恤/polo/衬衫-销售属性尺码-100/4T-规格属性图片"
                    }
                ]
            }
        ],
        "skus": [
            {
                "id": "300476623",
                "skuCode": "300476623",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 4943,
                "picture": "https://yanxuan-item.nosdn.127.net/25320ac8a79b26b5baff8337010e9670.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "米白"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73/18M"
                    }
                ]
            },
            {
                "id": "300476624",
                "skuCode": "300476624",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 2727,
                "picture": "https://yanxuan-item.nosdn.127.net/25320ac8a79b26b5baff8337010e9670.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "米白"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80/24M"
                    }
                ]
            },
            {
                "id": "300476625",
                "skuCode": "300476625",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 1092,
                "picture": "https://yanxuan-item.nosdn.127.net/25320ac8a79b26b5baff8337010e9670.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "米白"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90/3T"
                    }
                ]
            },
            {
                "id": "300476626",
                "skuCode": "300476626",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 2057,
                "picture": "https://yanxuan-item.nosdn.127.net/25320ac8a79b26b5baff8337010e9670.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "米白"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100/4T"
                    }
                ]
            },
            {
                "id": "300476627",
                "skuCode": "300476627",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 9312,
                "picture": "https://yanxuan-item.nosdn.127.net/25320ac8a79b26b5baff8337010e9670.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "米白"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110/5T"
                    }
                ]
            },
            {
                "id": "300476628",
                "skuCode": "300476628",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 4159,
                "picture": "https://yanxuan-item.nosdn.127.net/25320ac8a79b26b5baff8337010e9670.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "米白"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120/6T"
                    }
                ]
            },
            {
                "id": "300476629",
                "skuCode": "300476629",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 7561,
                "picture": "https://yanxuan-item.nosdn.127.net/25320ac8a79b26b5baff8337010e9670.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "米白"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130/8T"
                    }
                ]
            },
            {
                "id": "300476630",
                "skuCode": "300476630",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 3881,
                "picture": "https://yanxuan-item.nosdn.127.net/959423192703db495c39ee7ab7046f38.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "极地黄"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73/18M"
                    }
                ]
            },
            {
                "id": "300476631",
                "skuCode": "300476631",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 5172,
                "picture": "https://yanxuan-item.nosdn.127.net/959423192703db495c39ee7ab7046f38.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "极地黄"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80/24M"
                    }
                ]
            },
            {
                "id": "300476632",
                "skuCode": "300476632",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 388,
                "picture": "https://yanxuan-item.nosdn.127.net/959423192703db495c39ee7ab7046f38.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "极地黄"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90/3T"
                    }
                ]
            },
            {
                "id": "300476633",
                "skuCode": "300476633",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 5624,
                "picture": "https://yanxuan-item.nosdn.127.net/959423192703db495c39ee7ab7046f38.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "极地黄"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100/4T"
                    }
                ]
            },
            {
                "id": "300476634",
                "skuCode": "300476634",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 9407,
                "picture": "https://yanxuan-item.nosdn.127.net/959423192703db495c39ee7ab7046f38.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "极地黄"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110/5T"
                    }
                ]
            },
            {
                "id": "300476635",
                "skuCode": "300476635",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 8317,
                "picture": "https://yanxuan-item.nosdn.127.net/959423192703db495c39ee7ab7046f38.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "极地黄"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120/6T"
                    }
                ]
            },
            {
                "id": "300476636",
                "skuCode": "300476636",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 3077,
                "picture": "https://yanxuan-item.nosdn.127.net/959423192703db495c39ee7ab7046f38.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "极地黄"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130/8T"
                    }
                ]
            },
            {
                "id": "300476637",
                "skuCode": "300476637",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 619,
                "picture": "https://yanxuan-item.nosdn.127.net/df5c51c0772ef8948449dd8cb5d9b493.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "暗绿色"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73/18M"
                    }
                ]
            },
            {
                "id": "300476638",
                "skuCode": "300476638",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 2705,
                "picture": "https://yanxuan-item.nosdn.127.net/df5c51c0772ef8948449dd8cb5d9b493.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "暗绿色"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80/24M"
                    }
                ]
            },
            {
                "id": "300476639",
                "skuCode": "300476639",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 9167,
                "picture": "https://yanxuan-item.nosdn.127.net/df5c51c0772ef8948449dd8cb5d9b493.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "暗绿色"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90/3T"
                    }
                ]
            },
            {
                "id": "300476640",
                "skuCode": "300476640",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 8679,
                "picture": "https://yanxuan-item.nosdn.127.net/df5c51c0772ef8948449dd8cb5d9b493.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "暗绿色"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100/4T"
                    }
                ]
            },
            {
                "id": "300476641",
                "skuCode": "300476641",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 7661,
                "picture": "https://yanxuan-item.nosdn.127.net/df5c51c0772ef8948449dd8cb5d9b493.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "暗绿色"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110/5T"
                    }
                ]
            },
            {
                "id": "300476642",
                "skuCode": "300476642",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 9735,
                "picture": "https://yanxuan-item.nosdn.127.net/df5c51c0772ef8948449dd8cb5d9b493.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "暗绿色"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120/6T"
                    }
                ]
            },
            {
                "id": "300476643",
                "skuCode": "300476643",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 4878,
                "picture": "https://yanxuan-item.nosdn.127.net/df5c51c0772ef8948449dd8cb5d9b493.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "暗绿色"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130/8T"
                    }
                ]
            },
            {
                "id": "300476644",
                "skuCode": "300476644",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 7256,
                "picture": "https://yanxuan-item.nosdn.127.net/2df51fa62b5719c2553249055eaaa02a.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "灰半蓝"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73/18M"
                    }
                ]
            },
            {
                "id": "300476645",
                "skuCode": "300476645",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 5463,
                "picture": "https://yanxuan-item.nosdn.127.net/2df51fa62b5719c2553249055eaaa02a.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "灰半蓝"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80/24M"
                    }
                ]
            },
            {
                "id": "300476646",
                "skuCode": "300476646",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 3998,
                "picture": "https://yanxuan-item.nosdn.127.net/2df51fa62b5719c2553249055eaaa02a.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "灰半蓝"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90/3T"
                    }
                ]
            },
            {
                "id": "300476647",
                "skuCode": "300476647",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 9780,
                "picture": "https://yanxuan-item.nosdn.127.net/2df51fa62b5719c2553249055eaaa02a.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "灰半蓝"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100/4T"
                    }
                ]
            },
            {
                "id": "300476648",
                "skuCode": "300476648",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 4235,
                "picture": "https://yanxuan-item.nosdn.127.net/2df51fa62b5719c2553249055eaaa02a.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "灰半蓝"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110/5T"
                    }
                ]
            },
            {
                "id": "300476649",
                "skuCode": "300476649",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 5674,
                "picture": "https://yanxuan-item.nosdn.127.net/2df51fa62b5719c2553249055eaaa02a.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "灰半蓝"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120/6T"
                    }
                ]
            },
            {
                "id": "300476650",
                "skuCode": "300476650",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 7178,
                "picture": "https://yanxuan-item.nosdn.127.net/2df51fa62b5719c2553249055eaaa02a.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "灰半蓝"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130/8T"
                    }
                ]
            },
            {
                "id": "300476651",
                "skuCode": "300476651",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 9673,
                "picture": "https://yanxuan-item.nosdn.127.net/c4295d879800d3280c483faa043ad6f2.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "虎虎生威"
                    },
                    {
                        "name": "尺码",
                        "valueName": "73/18M"
                    }
                ]
            },
            {
                "id": "300476652",
                "skuCode": "300476652",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 114,
                "picture": "https://yanxuan-item.nosdn.127.net/c4295d879800d3280c483faa043ad6f2.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "虎虎生威"
                    },
                    {
                        "name": "尺码",
                        "valueName": "80/24M"
                    }
                ]
            },
            {
                "id": "300476653",
                "skuCode": "300476653",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 4647,
                "picture": "https://yanxuan-item.nosdn.127.net/c4295d879800d3280c483faa043ad6f2.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "虎虎生威"
                    },
                    {
                        "name": "尺码",
                        "valueName": "90/3T"
                    }
                ]
            },
            {
                "id": "300476654",
                "skuCode": "300476654",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 7728,
                "picture": "https://yanxuan-item.nosdn.127.net/c4295d879800d3280c483faa043ad6f2.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "虎虎生威"
                    },
                    {
                        "name": "尺码",
                        "valueName": "100/4T"
                    }
                ]
            },
            {
                "id": "300476655",
                "skuCode": "300476655",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 6805,
                "picture": "https://yanxuan-item.nosdn.127.net/c4295d879800d3280c483faa043ad6f2.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "虎虎生威"
                    },
                    {
                        "name": "尺码",
                        "valueName": "110/5T"
                    }
                ]
            },
            {
                "id": "300476656",
                "skuCode": "300476656",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 6511,
                "picture": "https://yanxuan-item.nosdn.127.net/c4295d879800d3280c483faa043ad6f2.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "虎虎生威"
                    },
                    {
                        "name": "尺码",
                        "valueName": "120/6T"
                    }
                ]
            },
            {
                "id": "300476657",
                "skuCode": "300476657",
                "price": "89.00",
                "oldPrice": "99.00",
                "inventory": 1495,
                "picture": "https://yanxuan-item.nosdn.127.net/c4295d879800d3280c483faa043ad6f2.png",
                "specs": [
                    {
                        "name": "颜色",
                        "valueName": "虎虎生威"
                    },
                    {
                        "name": "尺码",
                        "valueName": "130/8T"
                    }
                ]
            }
        ],
        "categories": [
            {
                "id": "1020003",
                "name": "T恤/polo/衬衫",
                "layer": 2,
                "parent": {
                    "id": "1011000",
                    "name": "母婴",
                    "layer": 1,
                    "parent": null
                }
            },
            {
                "id": "1011000",
                "name": "母婴",
                "layer": 1,
                "parent": null
            }
        ],
        "details": {
            "pictures": [
                "https://yanxuan-item.nosdn.127.net/d17e93e318fb77fd2713ead61afc2182.jpg",
                "https://yanxuan-item.nosdn.127.net/e8f3c9a58d35c83fd6804e4737e4e719.jpg",
                "https://yanxuan-item.nosdn.127.net/ddd8b464451c653ae5ac57002c4efdf7.jpg",
                "https://yanxuan-item.nosdn.127.net/cbcf3d6758e066565060a4be93a7fe16.jpg",
                "https://yanxuan-item.nosdn.127.net/7d7219d20e8444d4765a997c78d43fbe.jpg",
                "https://yanxuan-item.nosdn.127.net/b1dba8f32a247a9faffca2ac660e669d.jpg",
                "https://yanxuan-item.nosdn.127.net/0c6658b1b6eaaee8e3e465a19300c019.jpg",
                "https://yanxuan-item.nosdn.127.net/9b19e6eae2f45e7d6aeb415b34040b31.jpg",
                "https://yanxuan-item.nosdn.127.net/3c04abfcef3f197e8380d4a55fccf597.jpg",
                "https://yanxuan-item.nosdn.127.net/4eff6d25adb4f536bb2eca28db22f607.jpg",
                "https://yanxuan-item.nosdn.127.net/06deb54d0afff83f9b00715085bcbefe.jpg",
                "https://yanxuan-item.nosdn.127.net/ea03ffabcfc6911cc65bc5d845e9fe94.jpg",
                "https://yanxuan-item.nosdn.127.net/d585b18d12d47b116c00279a65d16fbf.jpg",
                "https://yanxuan-item.nosdn.127.net/c7bb82029b6361ce7ccd7724a2124862.jpg",
                "https://yanxuan-item.nosdn.127.net/d608366ee6a20114d6322814e0a48400.jpg",
                "https://yanxuan-item.nosdn.127.net/ac30264177687707e50f21a2947d3141.jpg",
                "https://yanxuan-item.nosdn.127.net/fa4d4a09ad82397eefc96b6a7491d31c.jpg",
                "https://yanxuan-item.nosdn.127.net/b30c0f70aa5cd2da2cb2448667ca9bae.jpg",
                "https://yanxuan-item.nosdn.127.net/38e4d4562b3d430615f0838a7faac64d.jpg",
                "https://yanxuan-item.nosdn.127.net/5d530bac8541366fb6ffbf8d9b46abe2.jpg",
                "https://yanxuan-item.nosdn.127.net/55d58e4e56887fe4bf3ab71e67f60330.jpg",
                "https://yanxuan-item.nosdn.127.net/8e7612d375c9dcd106c4af9740491b7d.jpg",
                "https://yanxuan-item.nosdn.127.net/26477e517e78622d8368b422540b8cb2.jpg",
                "https://yanxuan-item.nosdn.127.net/ae5ff32cb427f7868baeb561d2bcc2fd.jpg",
                "https://yanxuan-item.nosdn.127.net/1fef8d0341d9f57f8204e4c020745873.jpg",
                "https://yanxuan-item.nosdn.127.net/3d7693d682558799fed44720771cbdce.jpg",
                "https://yanxuan-item.nosdn.127.net/6cd9467938fb02900b68b5b36649621b.jpg",
                "https://yanxuan-item.nosdn.127.net/6e90b89bd6bd9c593c23bf268667c10b.jpg",
                "https://yanxuan-item.nosdn.127.net/ca0f4bb95d65c0ee9db77e234dd48bf8.jpg",
                "https://yanxuan-item.nosdn.127.net/f8770e70e62abab241bc2ebfed6e7755.jpg",
                "https://yanxuan-item.nosdn.127.net/6cb5044aa46f7d1df38dd02ab3d44f24.jpg",
                "https://yanxuan-item.nosdn.127.net/b07d7218574c00ed279b3cb9f1398320.jpg",
                "https://yanxuan-item.nosdn.127.net/d731e365803d74ed86a1d7c7e8b3604d.jpg",
                "https://yanxuan-item.nosdn.127.net/406e5e1d6c651a2517d710759bca306a.jpg",
                "https://yanxuan-item.nosdn.127.net/69aabbe9990ca3f79e46fc945166bd66.jpg",
                "https://yanxuan-item.nosdn.127.net/e247235d6fde2b1ce33e9e5fed08fe8f.jpg",
                "https://yanxuan-item.nosdn.127.net/1a7e7b38f0af73d3edb337073a5af41b.jpg",
                "https://yanxuan-item.nosdn.127.net/83e836d1be1c1957ecffd76eb50b0c6c.jpg",
                "https://yanxuan-item.nosdn.127.net/41345cc53355f6f1863e90ccd7df9771.jpg",
                "https://yanxuan-item.nosdn.127.net/b65bb51e5861b8dc374d66a3b433f1b7.jpg",
                "https://yanxuan-item.nosdn.127.net/54f5f2627e313f3fde873844224d1659.jpg",
                "https://yanxuan-item.nosdn.127.net/5294d195515c3294cdbabd8a52e33218.jpg",
                "https://yanxuan-item.nosdn.127.net/b7f8927b0de3839310c8b4f79849fb9a.jpg",
                "https://yanxuan-item.nosdn.127.net/218d344e97bfcef2e74cb9e5630e62d6.jpg",
                "https://yanxuan-item.nosdn.127.net/cdd1b0bd042f057e44dd55aa1dfee5b7.jpg",
                "https://yanxuan-item.nosdn.127.net/35430c0c6189f7b95d1bdbee49ac0a92.jpg",
                "https://yanxuan-item.nosdn.127.net/818c8a68280ab6303b6221907a55f2ae.jpg",
                "https://yanxuan-item.nosdn.127.net/b4ccfb0228842390f344b28ea52e35ba.jpg",
                "https://yanxuan-item.nosdn.127.net/f7da636a5d2cd961fc0be9d20d6e2f15.jpg",
                "https://yanxuan-item.nosdn.127.net/bbdabd2d986ebeb89fa01dc198b8a8f2.jpg",
                "https://yanxuan-item.nosdn.127.net/e80c854997e5c55abc2f7d55470670ee.jpg",
                "https://yanxuan-item.nosdn.127.net/7631ece110dd899564e8d238ffb79bfe.jpg",
                "https://yanxuan-item.nosdn.127.net/5473bcfa52b15a9dca4bdeb5c1c482e7.jpg",
                "https://yanxuan-item.nosdn.127.net/9ca4698ff1d5a183f112d0fccb7ced6b.jpg",
                "https://yanxuan-item.nosdn.127.net/4b1c3e76526d1d7023c462f92ca18015.jpg",
                "https://yanxuan-item.nosdn.127.net/7ff5cddbfc1055da72cfd99cc1115a93.jpg",
                "https://yanxuan-item.nosdn.127.net/be47b6b98e491008a687cf18b245a8c0.jpg",
                "https://yanxuan-item.nosdn.127.net/0561fa21a81133ba363f25d0add8eace.jpg",
                "https://yanxuan-item.nosdn.127.net/1a06a83166e3c4e43dd06453d724267e.jpg",
                "https://yanxuan-item.nosdn.127.net/39162ded2a6da88708d82e5afa4d8f16.jpg",
                "https://yanxuan-item.nosdn.127.net/e4fe6b8bf1baaa33237afa670934b701.jpg",
                "https://yanxuan-item.nosdn.127.net/c87bb208152b3814bad19afd155b77d5.jpg",
                "https://yanxuan-item.nosdn.127.net/9ab53d066ec4d33587334def3a6cccef.jpg",
                "https://yanxuan-item.nosdn.127.net/a420c92c75d032ee854bb0946b241799.jpg",
                "https://yanxuan-item.nosdn.127.net/738a75098f8c6239ab1315bcb7e7bd20.jpg",
                "https://yanxuan-item.nosdn.127.net/49fc67071c6cf3c9a703c81b4800f23f.jpg",
                "https://yanxuan-item.nosdn.127.net/99c93c82f6fd01582de3e96c467ab6ea.jpg",
                "https://yanxuan-item.nosdn.127.net/5e0e0b4bb32438eb0ec9fa3d8652bfaa.jpg",
                "https://yanxuan-item.nosdn.127.net/47df78d6e94cdbdab0d72c60df0d19cc.jpg",
                "https://yanxuan-item.nosdn.127.net/381c6f919afa6bfa64880362d1494cf3.jpg",
                "https://yanxuan-item.nosdn.127.net/8e1a8903754deafe6152ba1ee768a99f.jpg",
                "https://yanxuan-item.nosdn.127.net/098089e43d777a61053bef0c77e0b883.jpg",
                "https://yanxuan-item.nosdn.127.net/4c8a2555193f539f00925d8229b5c05d.jpg",
                "https://yanxuan-item.nosdn.127.net/9ca474dc6aec7e2ec0587fe7313105dd.jpg",
                "https://yanxuan-item.nosdn.127.net/c8143393d1084032e414a6214d15dae3.jpg",
                "https://yanxuan-item.nosdn.127.net/7ac2c5699f498fb6f60f7ce3de8b96a1.jpg",
                "https://yanxuan-item.nosdn.127.net/0f332e0dbf44d9774fdd343f26b7715c.jpg",
                "https://yanxuan-item.nosdn.127.net/83384d1a1f9a6b009e3e88b2ef89c876.jpg",
                "https://yanxuan-item.nosdn.127.net/199e0f8b90abe0c0983e332a8ab9ddff.jpg",
                "https://yanxuan-item.nosdn.127.net/44b8382e9e6fc5a6d6ee6ef3baeb2239.jpg",
                "https://yanxuan-item.nosdn.127.net/5536540a65c6afd305ed406ada3873dd.jpg",
                "https://yanxuan-item.nosdn.127.net/2e201a00df378a8f48c5aac9aa58372b.jpg",
                "https://yanxuan-item.nosdn.127.net/afe227741ce4e671ab0aaa3fbe3a8d4f.jpg",
                "https://yanxuan-item.nosdn.127.net/ddaf4b11f6847651be7d4b044eed71a5.jpg",
                "https://yanxuan-item.nosdn.127.net/4caf6c944bab2c9a30e6f02ec2ca76ad.jpg",
                "https://yanxuan-item.nosdn.127.net/c9231f3599f439c46d90cdff2532ae44.jpg",
                "https://yanxuan-item.nosdn.127.net/6de91bd515adc52f0a980926b30665e0.jpg",
                "https://yanxuan-item.nosdn.127.net/a3f392c48bd65c18cd3d7b15d5c1396b.jpg",
                "https://yanxuan-item.nosdn.127.net/7f3e5580f8e94448849aac4e4b601d61.jpg",
                "https://yanxuan-item.nosdn.127.net/ab9e512c04c6d6fbb8e4f425aa44612d.jpg",
                "https://yanxuan-item.nosdn.127.net/6af30d522d20c8696f58e1e688a4036f.jpg",
                "https://yanxuan-item.nosdn.127.net/597b0034cb4b84dcb2bde9ba60333fd1.jpg",
                "https://yanxuan-item.nosdn.127.net/e247c6bc5baba78601bfdebdb8829b3a.jpg",
                "https://yanxuan-item.nosdn.127.net/efdd69b7d9c956f85170eacc08f99304.jpg",
                "https://yanxuan-item.nosdn.127.net/160c90570c1eb0a0af3a5d0966e855ff.jpg",
                "https://yanxuan-item.nosdn.127.net/640f093d53e6cdfc8e23c65ac63f2e6c.jpg",
                "https://yanxuan-item.nosdn.127.net/2b276d2aed400069f5c9dea9cb5dced1.jpg",
                "https://yanxuan-item.nosdn.127.net/e479b7a227a3131cff82d221b6b1422c.jpg",
                "https://yanxuan-item.nosdn.127.net/fa7c9753074ad17ec0765bba0f59359a.jpg",
                "https://yanxuan-item.nosdn.127.net/fda8bceff12917a908a89325c5e7f9f1.jpg",
                "https://yanxuan-item.nosdn.127.net/07252a52be03d361a39ccdd22680699a.jpg",
                "https://yanxuan-item.nosdn.127.net/e79fde61c3a1dd927766fecf188aafce.jpg",
                "https://yanxuan-item.nosdn.127.net/6eb88f082686ad9bbc429c17e8b38073.jpg"
            ],
            "properties": [
                {
                    "name": "适用年龄",
                    "value": "6-9岁、3-6岁、1-3岁、0-1岁"
                },
                {
                    "name": "适用季节",
                    "value": "冬、秋、春秋"
                },
                {
                    "name": "材质",
                    "value": "纯棉"
                }
            ]
        },
        "isPreSale": false,
        "isCollect": null,
        "recommends": null,
        "userAddresses": null,
        "similarProducts": [
            {
                "id": "4007902",
                "name": "纯棉舒适女童印花荷叶袖小衫90-140cm",
                "desc": "圈圈花图案，拼接大喇叭袖型",
                "price": "139.00",
                "picture": "https://yanxuan-item.nosdn.127.net/11d0160b0a30c344d1b250c3e613fbb7.jpg",
                "orderNum": 313
            },
            {
                "id": "4026450",
                "name": "趣味小恐龙绣花，男童灯芯绒衬衫",
                "desc": "趣味小恐龙绣花，满版老虎印花，5色可选",
                "price": "89.00",
                "picture": "https://yanxuan-item.nosdn.127.net/e68d406a58622a8d850de442aacfcf2e.jpg",
                "orderNum": 350
            },
            {
                "id": "4026198",
                "name": "经典格子元素，男童加绒格子衬衫",
                "desc": "经典格子元素，翻盖小贴袋装饰",
                "price": "125.00",
                "picture": "https://yanxuan-item.nosdn.127.net/084f82c43a71bbc4d280fbb09a47a028.jpg",
                "orderNum": 2024
            },
            {
                "id": "4014237",
                "name": "田园复古木耳边格纹全棉A字衬衫110-160cm",
                "desc": "甜美木耳边，回归田园",
                "price": "109.00",
                "picture": "https://yanxuan-item.nosdn.127.net/3fbddae68393a4b2f7d0339cdcfc5ca6.jpg",
                "orderNum": 300
            }
        ],
        "hotByDay": [
            {
                "id": "4026450",
                "name": "趣味小恐龙绣花，男童灯芯绒衬衫",
                "desc": "趣味小恐龙绣花，满版老虎印花，5色可选",
                "price": "89.00",
                "picture": "https://yanxuan-item.nosdn.127.net/e68d406a58622a8d850de442aacfcf2e.jpg",
                "orderNum": 350
            },
            {
                "id": "4023638",
                "name": "抓绒保暖，毛毛虫儿童运动鞋26-30",
                "desc": "宝贝上脚活力出街",
                "price": "109.00",
                "picture": "https://yanxuan-item.nosdn.127.net/d917c92e663c5ed0bb577c7ded73e4ec.png",
                "orderNum": 1815
            },
            {
                "id": "4023641",
                "name": "防踢鞋头，儿童学步健康机能鞋21-30",
                "desc": "包头防踢用心呵护",
                "price": "129.00",
                "picture": "https://yanxuan-item.nosdn.127.net/33ba674fbb13e2380ee8a74371eacf43.jpg",
                "orderNum": 473
            },
            {
                "id": "4026198",
                "name": "经典格子元素，男童加绒格子衬衫",
                "desc": "经典格子元素，翻盖小贴袋装饰",
                "price": "125.00",
                "picture": "https://yanxuan-item.nosdn.127.net/084f82c43a71bbc4d280fbb09a47a028.jpg",
                "orderNum": 2024
            }
        ],
        "evaluationInfo": {
            "id": "1497559523202699266",
            "orderInfo": {
                "specs": [],
                "quantity": 1,
                "createTime": null
            },
            "member": null,
            "score": 5,
            "tags": null,
            "content": "系统默认好评",
            "pictures": null,
            "officialReply": null,
            "praiseCount": 682,
            "createTime": "2022-02-26 21:09:48",
            "praisePercent": 1
        }
    }
}
 */


/**
 * 获取热榜商品
 * @param {Number} id - 商品id
 * @param {Number} type - 1代表24小时热销榜 2代表周热销榜
 * @param {Number} limit - 获取个数
 */
export const getHotGoodsAPI = ({ id, type, limit = 3 }) => {
    return request({
      url:'/goods/hot',
      params:{
        id, 
        type, 
        limit
      }
    })
  }


  /**
   * 获取热榜商品
   * /goods/hot 返回格式:
   * {
    "code": "1",
    "msg": "操作成功",
    "result": [
        {
            "id": "4007902",
            "name": "纯棉舒适女童印花荷叶袖小衫90-140cm",
            "desc": "圈圈花图案，拼接大喇叭袖型",
            "price": "139.00",
            "picture": "https://yanxuan-item.nosdn.127.net/11d0160b0a30c344d1b250c3e613fbb7.jpg",
            "orderNum": 313
        },
        {
            "id": "4026450",
            "name": "趣味小恐龙绣花，男童灯芯绒衬衫",
            "desc": "趣味小恐龙绣花，满版老虎印花，5色可选",
            "price": "89.00",
            "picture": "https://yanxuan-item.nosdn.127.net/e68d406a58622a8d850de442aacfcf2e.jpg",
            "orderNum": 350
        },
        {
            "id": "4026198",
            "name": "经典格子元素，男童加绒格子衬衫",
            "desc": "经典格子元素，翻盖小贴袋装饰",
            "price": "125.00",
            "picture": "https://yanxuan-item.nosdn.127.net/084f82c43a71bbc4d280fbb09a47a028.jpg",
            "orderNum": 2024
        }
    ]
}
   */
